package com.fowo.api.model.purchase;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import javax.validation.constraints.*;
import lombok.Data;

/** 采购订单子表 导入导出辅助模型 */
@Data
public class PurchaseOrderProductExcelPo {

  @Size(max = 50, message = "图片长度不能超过20")
  @ExcelProperty(value = "图片")
  private String picUrlName;

  @ExcelIgnore
  @ExcelProperty(value = "图片")
  private Long picUrl;

  @NotNull(message = "品名不能为空")
  @Size(max = 50, message = "品名长度不能超过20")
  @ExcelProperty(value = "*品名")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*品名")
  private Long productId;

  @Size(max = 50, message = "sku长度不能超过20")
  @ExcelProperty(value = "sku")
  private String sku;

  @Size(max = 50, message = "店铺长度不能超过20")
  @ExcelProperty(value = "店铺")
  private String sidIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long sidId;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @Size(max = 50, message = "型号长度不能超过20")
  @ExcelProperty(value = "型号")
  private String model;

  @NotNull(message = "采购数量不能为空")
  @Size(max = 50, message = "采购数量长度不能超过20")
  @ExcelProperty(value = "*采购数量")
  private Integer applicationNum;

  @Size(max = 50, message = "单价长度不能超过20")
  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @Size(max = 50, message = "含税单价长度不能超过20")
  @ExcelProperty(value = "含税单价")
  private java.math.BigDecimal taxPrice;

  @Size(max = 50, message = "供应商报价长度不能超过20")
  @ExcelProperty(value = "供应商报价")
  private String psqId;

  @ExcelProperty(value = "税率")
  private java.math.BigDecimal taxRate;

  @ExcelProperty(value = "税额")
  private java.math.BigDecimal taxAmount;

  @Size(max = 50, message = "含税单价长度不能超过20")
  @ExcelProperty(value = "含税单价")
  private String psqPrice;

  @Size(max = 50, message = "金额长度不能超过20")
  @ExcelProperty(value = "金额")
  private java.math.BigDecimal totalPrice;

  @Size(max = 50, message = "价税合计长度不能超过20")
  @ExcelProperty(value = "价税合计")
  private java.math.BigDecimal amount;

  @Size(max = 50, message = "到货量长度不能超过20")
  @ExcelProperty(value = "到货量")
  private Integer quantityReceived;

  @Size(max = 50, message = "待到货量长度不能超过20")
  @ExcelProperty(value = "待到货量")
  private Integer quantityReceive;

  @Size(max = 50, message = "退货量长度不能超过20")
  @ExcelProperty(value = "退货量")
  private Integer quantityReturn;

  @Size(max = 50, message = "预计到货时间长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "预计到货时间")
  private java.util.Date expectArriveTime;

  @Size(max = 50, message = "到货日期长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "到货日期")
  private java.util.Date arrivalDate;

  @ExcelProperty(value = "所属采购订单")
  private String purchaseOrderIdSupplierName;

  @ExcelIgnore
  @ExcelProperty(value = "所属采购订单")
  private Long purchaseOrderId;

  @Size(max = 50, message = "备注长度不能超过20")
  @ExcelProperty(value = "备注")
  private String remarks;
}
